package com.siwei.mes.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;


/**
 * 物料表(Materials)实体类
 *
 * @author linzi
 * @since 2023-11-27 22:46:47
 */
@Data
@Accessors(chain = true)
@Table(name = "t_materials")
@ApiModel(value = "Materials", description = "物料表")
public class Materials implements Serializable {
    private static final long serialVersionUID = -54891438205001871L;
    /**
     * 主键id
     */
    @Id
    @ApiModelProperty(value = "物料表主键ID", name = "id")
    private Long id;
    /**
     * 物料名称
     */
    @Column(name = "material_name")
    @ApiModelProperty(value = "物料名称", name = "materialName")
    private String materialName;
    /**
     * 物料规格
     */
    @Column(name = "material_specs")
    @ApiModelProperty(value = "物料规格", name = "materialSpecs")
    private String materialSpecs;
    /**
     * 物料类型  字典 MATERIAL_TYPE
     */
    @Column(name = "material_type")
    @ApiModelProperty(value = "物料类型  字典 MATERIAL_TYPE", name = "materialType")
    private Long materialType;
    /**
     * 物料类型 字典名称
     */
    @Column(name = "material_type_name")
    @ApiModelProperty(value = "物料类型 字典名称", name = "materialTypeName")
    private String materialTypeName;
    /**
     * 创建人
     */
    @Column(name = "creater")
    @ApiModelProperty(value = "创建人", name = "creater")
    private Long creater;
    /**
     * 创建时间
     */
    @Column(name = "create_time")
    @ApiModelProperty(value = "创建时间", name = "createTime")
    private Date createTime;
    /**
     * 修改人
     */
    @Column(name = "updater")
    @ApiModelProperty(value = "修改人", name = "updater")
    private Long updater;
    /**
     * 更新时间
     */
    @Column(name = "update_time")
    @ApiModelProperty(value = "更新时间", name = "updateTime")
    private Date updateTime;
    /**
     * 是否删除  1-删除
     */
    @Column(name = "is_del")
    @ApiModelProperty(value = "是否删除  1-删除", name = "isDel")
    private Integer isDel;
}
